//
// Unihan Input Method
//
// Copyright © 2002-2007 Sun Wah Linux Ltd.
//
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//
// $Id: illegibility.h 757 2007-05-10 08:19:31Z roger $
//

#ifndef _ILLEGIBILITY_H
#define _ILLEGIBILITY_H

#include "cands_factory.h"

typedef struct _IllTree {
	InputCell *ic;
	int lowIdx;
	struct _IllTree *next;
} IllTree;

typedef struct _IllTable {
	char *str1;
	char *str2;
} IllTable;

void Ill_refresh_CandFactory(UnihanIM *uim, char *cell);
void Ill_find_candidates(UnihanIM *uim);
void Ill_lookup_draw(UnihanIM *uim);
void Ill_back_space(UnihanIM *uim);
int Ill_idx_search(UnihanIM *uim);
int Ill_idx_sel(UnihanIM *uim, IMKeyEvent *kev);
int Ill_page_down(UnihanIM *uim);
int Ill_page_up(UnihanIM *uim);
void Ill_sel_up(UnihanIM *uim);
void Ill_sel_down(UnihanIM *uim);

#endif /* _ILLEGIBILITY_H */

// vi:ts=4:nowrap:cin:expandtab
